package com.pipi.sso.dao.manager;

import com.pipi.sso.dao.model.CollegeDO;
import com.pipi.sso.dao.query.CollegeQuery;
import com.pipi.sso.dao.support.PageResult;

import java.util.List;


/**
 * Manager for College.
 */
public interface CollegeManager {
    /**
     * query count by query condition.
     */
    int countByQuery(CollegeQuery query);

    /**
     * delete by query condition.
     */
    int deleteByQuery(CollegeQuery query);

    /**
     * delete by primary key.
     */
    int deleteByPrimaryKey(CollegeDO record);

    /**
     * insert selective.
     */
    long insertSelective(CollegeDO record);

    /**
     * select by query condition.
     */
    List<CollegeDO> selectByQuery(CollegeQuery query);


    /**
     * select by query condition with page.
     */
    PageResult<CollegeDO> selectByQueryWithPage(CollegeQuery query);

    /**
     * select by primary key.
     */
    CollegeDO selectByPrimaryKey(Long id);

    /**
     * update by query condition selective.
     */
    int updateByQuerySelective( CollegeDO record,  CollegeQuery query);

    /**
     * update by query condition.
     */
    int updateByQuery(CollegeDO record, CollegeQuery query);

    /**
     * update by primary key selective.
     */
    int updateByPrimaryKeySelective(CollegeDO record);
}